package com.qk.common.util.thread;

/**
 * @author 上官徵羽
 * @version 1.0
 * @since 2025-10-15 8:23
 */
public class CurrentLoggedInUserIDData {
    private static final ThreadLocal<Integer> THREAD_LOCAL = new ThreadLocal<>();

    private CurrentLoggedInUserIDData() {
    }

    public static void set(Integer data) {
        THREAD_LOCAL.set(data);
    }

    public static Integer get() {
        return THREAD_LOCAL.get();
    }

    public static void remove() {
        THREAD_LOCAL.remove();
    }
}
